<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method='xml'
	indent="yes"
	omit-xml-declaration="yes"
	doctype-public = "-//W3C//DTD XHTML 1.0 Strict//EN"
	doctype-system = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
	/>

<!-- parameters -->


<!-- image data -->
<xsl:param name="_id"/>

<xsl:template match="/">
	<html>
		<!-- html head -->
		<head>
			<title>Comments list</title>
			<link rel="stylesheet" type="text/css" href="style/listcomments.css"></link>
		</head>

		<body id="blog_body">
			<div id="blog_header_div">
			</div>
			<!-- content -->
			<div id="blog_content_div">
				<!-- comments -->
				<div id="blog_comment_div">

					<h4>Comments</h4>
					<a>
						<xsl:attribute name="href">index.php?op=blog?&amp;id=<xsl:value-of select="$_id"/></xsl:attribute>Back
					</a>
					<xsl:for-each select="/root/comments/comment">
						<hr/>
						<div>
							<a><xsl:attribute name="href">index.php?op=blog&amp;id=<xsl:value-of select="id"/></xsl:attribute><img align="center"><xsl:attribute name="src">index.php?op=thumb&amp;rat=0.15&amp;id=<xsl:value-of select="id"/></xsl:attribute></img></a> :: <xsl:value-of select="date"/> :: <xsl:value-of select="text"/>
						</div>
						<hr/>
					</xsl:for-each>
				</div>
			</div>
			<div id="blog_footer_div">
			</div>
		</body>
	</html>
</xsl:template>
</xsl:stylesheet>
